//
//  SiterAPI.h
//  sHome
//
//  Created by tracyhenry on 2022/8/15.
//  Copyright © 2022年 SiterWell. All rights reserved.
//

#ifndef SiterAPI_h
#define SiterAPI_h
#import "SiterSDK.h"
#import <AFNetworking/AFNetworking.h>
#import <AWSCore/AWSServiceEnum.h>

typedef NS_ENUM(NSInteger, EnvStatus) {
    // Apple NetworkStatus Compatible Names.
    EnvStatus_release = 0,
    EnvStatus_debug = 1,
    EnvStatus_debug2 = 2
};

@interface Siter(Cloud)
-(AFHTTPSessionManager*) sessionWithDefaultAuthorization;
-(AFHTTPSessionManager*) sessionWithDefaultAuthorizationJson;
@end

@interface Siter(User)
-(NSString *)getDomain;
-(NSString *)getRegisterToken;
-(NSString *)getSokectClientId;
-(void) userLogin:(NSString*)userName withPwd:(NSString *)pwd callback:(void(^)(id user,NSError*,NSError*)) block;
-(void) tourlistRegister:(void(^)(id user,NSError*,NSError*)) block;
//google登录
-(void) userGoogleLogin:(NSString*)idToken callback:(void(^)(id user,NSError*,NSError*)) block;
-(void) refreshTokenwithCallback:(void(^)(id user,NSError*)) block;
-(void) logout;

@end


@interface Siter(Config)
-(NSString *)getEnv;
-(void) config:(NSDictionary*) config;
-(NSString *)getIOTENDPOINT;
-(NSString *)getIDENTITYPOOLID;
-(AWSRegionType)getREGION;
-(NSString *)getAWSIOTDATAMANAGERKEY;
-(NSString *)setIsProductSwitch;
-(void)setProductSwitch:(EnvStatus)value;
-(NSString *)getPrivacyURL;
-(NSString *)getUserAgreementURL;
@end

@interface Siter(AlexaAndGoogleHome)

-(NSString *)getStateCodeURL;
-(NSString *)getStateCodeURLByApp;
-(NSString *)getRedirectURL;
-(NSString *)getAlexaSkillId;
-(NSString *)getGoogleAssistantId;
@end

#endif /* SiterAPI_h */
